import Main from '@/components/main'
import MainGame from '@/components/main/main-game.vue'
export default [
  {
    path: '/game-apply-management',
    name: 'game-apply',
    component: Main,
    meta: {
      access: ['INTEGRAL_MANAGER'],
      title: '赛事申请',
      hideInMenu: true,
    },
    children: [
      {
        path: 'edit/:id/:type',
        name: 'game-apply-copy',
        meta: {
          // access: ["GAME_MANAGER"],
          title: '赛事复制'
        },
        component: () => import('@/view/game-apply/edit.vue')
      },
      {
        path: 'edit/:id',
        name: 'game-apply-edit',
        meta: {
          title: '赛事基本信息'
        },
        component: () => import('@/view/game-apply/edit.vue')
      },
      {
        path: 'edit',
        name: 'game-apply-add',
        meta: {
          title: '创建赛事'
        },
        component: () => import('@/view/game-apply/edit.vue')
      },
      {
        path: 'match/:id',
        name: 'game-apply-matchlist',
        meta: {
          title: '比赛安排'
        },
        component: () => import('@/view/game-apply/match-arrange.vue')
      },
      {
        path: 'game-record-card/:id',
        name: 'verify-game-record-card',
        meta: {
          title: '历史审核记录'
        },
        component: () => import('@/view/game-verify/game-record-card.vue'),
      }
    ]
  },
  {
    path: '/game-management',
    name: 'game',
    component: Main,
    meta: {
      access: ['INTEGRAL_MANAGER', "GAME_MANAGE"],
      title: '赛事管理'
    },
    children: [
      // {
      //   path: 'apply',
      //   name: 'game-apply-list',
      //   meta: {
      //     // access: ["GAME_MANAGER"],
      //     title: '申请赛事记录'
      //   },
      //   component: () => import('@/view/game-apply/game.vue'),
      // },
      {
        path: 'add/batch',
        name: 'game-add-batch',
        meta: {
          hideInMenu: true,
          title: '新增赛事'
        },
        component: () => import('@/view/game/edit.vue')
      },
      {
        path: 'edit-other/:kindCode/',
        name: 'game-other-add',
        meta: {
          hideInMenu: true,
          // access: ['GAME_MANAGE'],
          title: '创建赛事'
        },
        component: () => import('@/view/game/edit-other.vue')
      },
      {
        path: 'edit/:kindCode/:id',
        name: 'game-edit',
        meta: {
          hideInMenu: true,
          title: '赛事基本信息'
        },
        component: () => import('@/view/game/edit.vue')
      },
      {
        path: 'edit-other/:kindCode/:id',
        name: 'game-edit',
        meta: {
          hideInMenu: true,
          title: '赛事基本信息'
        },
        component: () => import('@/view/game/edit-other.vue')
      },
      {
        path: 'edit/:kindCode/',
        name: 'game-add',
        meta: {
          hideInMenu: true,
          access: ['GAME_MANAGE'],
          title: '创建赛事'
        },
        component: () => import('@/view/game/edit.vue')
      },
      {
        path: 'match/:id',
        name: 'game-match-arrange',
        meta: {
          hideInMenu: true,
          title: '比赛安排'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'career-man',
        name: 'career-man',
        meta: {
          title: '职业男子赛事'
        },
        component: () => import('@/view/game/career-man.vue')
      },
      {
        path: 'women',
        name: 'women',
        meta: {
          title: '职业女子赛事'
        },
        component: MainGame,
        children: [
          {
            path: 'career-women',
            name: 'career-women',
            meta: {
              title: '职业女子赛事'
            },
            component: () => import('@/view/game/career-women.vue')
          },
          {
            path: 'women-two',
            name: 'women-two',
            meta: {
              title: '职业女子二级赛事'
            },
            component: () => import('@/view/game/women-two.vue')
          }
        ]
      },
      {
        path: 'career-man/match/:id',
        name: 'game-match-arrange-career-man',
        meta: {
          hideInLeftMenu: true,
          title: '职业男子赛事'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'career-women/match/:id',
        name: 'game-match-arrange-career-women',
        meta: {
          hideInLeftMenu: true,
          title: '职业女子赛事'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'women-two/match/:id',
        name: 'game-match-arrange-women-two',
        meta: {
          hideInLeftMenu: true,
          title: '职业女子二级赛事'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'amateur',
        name: 'other-amateur',
        meta: {
          title: '业余赛事'
        },
        component: () => import('@/view/game/other-amateur.vue'),
      },
      {
        path: 'teen',
        name: 'other-teen',
        meta: {
          title: '青少年赛事'
        },
        component: () => import('@/view/game/other-teen.vue'),
      },
      {
        path: 'amateur/match/:id',
        name: 'game-match-arrange-amateur',
        meta: {
          hideInLeftMenu: true,
          title: '业余赛事'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'teen/match/:id',
        name: 'game-match-arrange-teen',
        meta: {
          hideInLeftMenu: true,
          title: '青少年赛事'
        },
        component: () => import('@/view/game/match-arrange.vue')
      },
      {
        path: 'history',
        name: 'game-history',
        meta: {
          title: '历史赛事'
        },
        component: MainGame,
        children: [
          {
            path: 'amateur',
            name: 'game-amateur',
            meta: {
              title: '业余赛事'
            },
            component: MainGame,
            children: [
              {
                path: 'man',
                name: 'game-amateur-man',
                meta: {
                  title: '男子组'
                },
                component: () => import('@/view/game/amateur-man.vue'),
              },
              {
                path: 'women',
                name: 'game-amateur-women',
                meta: {
                  title: '女子组'
                },
                component: () => import('@/view/game/amateur-women.vue'),
              },
              {
                path: 'man/match/:id',
                name: 'game-match-arrange-amateur-man',
                meta: {
                  hideInLeftMenu: true,
                  title: '男子组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
              {
                path: 'women/match/:id',
                name: 'game-match-arrange-amateur-women',
                meta: {
                  hideInLeftMenu: true,
                  title: '女子组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
            ]
          },
          {
            path: 'teen',
            name: 'game-teen',
            meta: {
              title: '青少年赛事'
            },
            component: MainGame,
            children: [
              {
                path: 'man-a',
                name: 'game-teen-man-a',
                meta: {
                  title: '青少年男子A组'
                },
                component: () => import('@/view/game/teen-man-a.vue'),
              },
              {
                path: 'women-a',
                name: 'game-teen-women-a',
                meta: {
                  title: '青少年女子A组'
                },
                component: () => import('@/view/game/teen-women-a.vue'),
              },
              {
                path: 'man-b',
                name: 'game-teen-man-b',
                meta: {
                  title: '青少年男子B组'
                },
                component: () => import('@/view/game/teen-man-b.vue'),
              },
              {
                path: 'women-b',
                name: 'game-teen-women-b',
                meta: {
                  title: '青少年女子B组'
                },
                component: () => import('@/view/game/teen-women-b.vue'),
              },
              {
                path: 'man-a/match/:id',
                name: 'game-match-arrange-teen-man-a',
                meta: {
                  hideInLeftMenu: true,
                  title: '青少年男子A组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
              {
                path: 'women-a/match/:id',
                name: 'game-match-arrange-teen-women-a',
                meta: {
                  hideInLeftMenu: true,
                  title: '青少年女子A组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
              {
                path: 'man-b/match/:id',
                name: 'game-match-arrange-teen-man-b',
                meta: {
                  hideInLeftMenu: true,
                  title: '青少年男子B组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
              {
                path: 'women-b/match/:id',
                name: 'game-match-arrange-teen-women-b',
                meta: {
                  hideInLeftMenu: true,
                  title: '青少年女子B组'
                },
                component: () => import('@/view/game/match-arrange.vue')
              },
            ]
          },
        ]
      }
    ]
  },
  {
    path: '/game-verify-management',
    name: 'game-verify',
    component: Main,
    meta: {
      access: ['INTEGRAL_MANAGER', 'GAME-VERIFY'],
      title: '赛事审核管理',
      hideInLeftMenu: true,
    },
    children: [
      {
        path: 'game-audit',
        name: 'verify-game-audit',
        meta: {
          // icon: 'md-grid',
          title: '待审核列表'
        },
        component: () => import('@/view/game-verify/game-audit.vue'),
      },
      {
        path: 'game-record',
        name: 'verify-game-record',
        meta: {
          // icon: 'md-grid',
          title: '审核记录'
        },
        component: () => import('@/view/game-verify/game-record.vue'),
      },
    ]
  }
]
